package com.xms.sdk.event;

import com.xms.core.data.Entity;
import com.xms.event.core.IEvent;
import com.xms.security.entity.PrincipalObjectAccess;

import java.util.List;

/**
 * <p>
 * 实体数据共享后事件
 * </p>
 *
 * @author migo
 * @since 2021/9/29
 */
public class EntitySharedEvent implements IEvent
{
    public Entity Data;
    public com.xms.schema.entity.Entity EntityMetadata;
    public List<PrincipalObjectAccess> Principals;

    public EntitySharedEvent(Entity $data, com.xms.schema.entity.Entity $entityMetadata, List<PrincipalObjectAccess> $principals){
        this.Data = $data;
        this.EntityMetadata = $entityMetadata;
        this.Principals = $principals;
    }
}
